package com.otupia.acs.entity;

import java.io.Serializable;

public class UserInfo implements Serializable
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 3463940634623109700L;

	private Long id;
	private String password;
	private String name;
	private String nickName;
	private String email;
	private String customInfo;

	public UserInfo()
	{
	}

	public Long getId()
	{
		return this.id;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	public int hashCode()
	{
		return (this.id == null) ? 0 : this.id.hashCode();
	}

	public String getPassword()
	{
		return password;
	}

	public void setPassword(String password)
	{
		this.password = password;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}
	
	public String getEmail()
	{
		return email;
	}

	public void setEmail(String email)
	{
		this.email = email;
	}

	public String getCustomInfo()
	{
		return customInfo;
	}

	public void setCustomInfo(String customInfo)
	{
		this.customInfo = customInfo;
	}
	
	
	public String getNickName()
	{
		return nickName;
	}

	public void setNickName(String nickName)
	{
		this.nickName = nickName;
	}
	
	public boolean equals(Object object)
	{
		if (object instanceof UserInfo)
		{
			final UserInfo obj = (UserInfo) object;
			return (this.id != null) ? this.id.equals(obj.id)
					: (obj.id == null);
		}
		return false;
	}

	public String toString()
	{
		StringBuffer sb = new StringBuffer("user info : {\n");
		sb.append("id :").append(this.id).append(",\n");
		sb.append("name :").append(this.name).append(",\n");
		sb.append("nickName :").append(this.nickName).append(",\n");
		sb.append("password :").append(this.password).append(",\n");
		sb.append("email :").append(this.email).append(",\n");
		sb.append("customInfo :").append(this.customInfo).append("\n}\n");
		return super.toString();
	}
	
}
